﻿<%@ Page ValidateRequest="false" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<textarea id="x" runat="server">
</textarea>
<input type="submit" value="XmlEncode" /><asp:RegularExpressionValidator 
      ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" 
      ErrorMessage="RegularExpressionValidator" 
      ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
   <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
   <asp:RegularExpressionValidator 
      ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox1" 
      ErrorMessage="RegularExpressionValidator" 
      ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
&nbsp;
<asp:CheckBox ID="Cb" Text="sss" runat="server" />
</asp:Content>

